﻿
@page
@model AdminUI.Pages.BaseData.VideoAddModel
@{
    var F = Html.F();
}

@section body{
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:HiddenField ID="GoodsID" Text="@Model.GoodsID"></f:HiddenField>
                    <f:FileUpload ID="CoverUrl" Label="封面图片" EmptyText="请选择要上传的视频封面图片文件" AcceptFileTypes="image/*" ButtonIcon="Add" Required="false"></f:FileUpload>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="60% 40%">
                <Items>
                    <f:RadioButtonList ID="source" Label="视频来源" SelectedValue="1" OnSelectedIndexChanged="@Url.Handler("Source_SelectedIndexChanged")" OnSelectedIndexChangedParameter1="@(new Parameter("selected", "this.getValue()"))">
                        <f:RadioItem Text="本地视频" Value="1" />
                        <f:RadioItem Text="网络视频" Value="2" />
                    </f:RadioButtonList>
                    <f:NumberBox ID="SortFlag" Label="排序" EmptyText="" Text="0" MinValue="0" NoDecimal="true" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:FileUpload ID="VideoUrl" Label="本地视频" EmptyText="请选择要上传的视频文件" AcceptFileTypes="video/*" ButtonIcon="Add" Required="false"></f:FileUpload>
                    <f:TextBox ID="LiveUrl" Label="网络视频" EmptyText="请输入视频播放/直播地址" Text="" Hidden="true" MaxLength="200"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextArea ID="Memo" EmptyText="请输入备注内容" Label="备注" AutoGrowHeight="true" AutoGrowHeightMin="120" AutoGrowHeightMax="300"></f:TextArea>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" IconFont="Close" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="保存" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>

    </script>
}
